function onclick_reply(){
	//alert("reply");
	var text_reply=$("#textReply").val();
	var toSomebody="fr";
	//alert($("postID"));
	var postID=document.getElementById("postID").value;
	
	if(text_reply==""){
	}else{
		sendReplyToServer(text_reply,toSomebody,postID);
	}
}

function sendReplyToServer(text_reply,toSomebody,postID){
	//alert("send");
	var PI={"text_reply":text_reply,"toSomebody":toSomebody,"postID":postID};
	
	alert(postID);
	
	$.ajax({
		type: "POST",
        url: "../FloorReply",
        data: PI,
        success: callbackRE,
        dataType: "json"
        });
}

function callbackRE(data){
	if(data.result){
		alert("Reply Successful");
		window.location.reload();
	}else{
		alert("F");
	}
}